#pragma once

#include "stdafx.h"
#include <winsock.h>
#include "Handler.h"

class SyncEventDemultiplexer
{
public:
	int PASCAL FAR select (
                        _In_ int nfds,
                        _Inout_opt_ fd_set FAR *readfds,
                        _Inout_opt_ fd_set FAR *writefds,
                        _Inout_opt_ fd_set FAR *exceptfds,
                        _In_opt_  const struct timeval FAR *timeout);

	bool isInSet(SOCKET, fd_set* set);

};

